import { http } from '@/utils/http/axios';

/**
 * @description: 获取提现列表
 */
export function cashlist(params) {
    return http.request({
        url: '/financial/cashlist',
        method: 'GET',
        params
    });
}

/**
 * @description: 详情
 */
export function cashInfo(params) {
    return http.request({
        url: '/financial/cashinfo',
        method: 'GET',
        params
    });
}

/**
 * 编辑
 */
export function cashEdit(params) {
    return http.request({
        url: '/financial/cashedit',
        method: 'POST',
        params
    })
}

/**
 * 删除
 */
export function cashDel(params) {
    return http.request({
        url: '/financial/cashdelete',
        method: 'POST',
        params
    })
}

/**
 * 用户提现审核
 */
export function cashshenhe(params) {
    return http.request({
        url: '/xcxmoney/cashshenhe',
        method: 'POST',
        params
    })
}

/**
 * 用户支付宝提现审核
 */
export function alipaycashshenhe(params) {
    return http.request({
        url: '/alipay/cashshenhe',
        method: 'POST',
        params
    })
}

/**
 * 代理商提现审核
 */
export function cashagentshenhe(params) {
    return http.request({
        url: '/xcxmoney/cashagentshenhe',
        method: 'POST',
        params
    })
}


/**
 * 提现数据统计
 */
export function cashdata(params) {
    return http.request({
        url: '/financial/cashdata',
        method: 'GET',
        params
    })
}

/**
 * @description: 获取充值记录列表
 */
export function rechargerecordlist(params) {
    return http.request({
        url: '/financial/rechargerecordlist',
        method: 'GET',
        params
    });
}

/**
 * 充值数据统计
 */
export function rechargerdata(params) {
    return http.request({
        url: '/financial/rechargerdata',
        method: 'GET',
        params
    })
}
